﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WoChu.CF.Base;
using WoChu.RfClient.Entity;

namespace WoChu.RfClient.Duty
{
    [ServiceName(Name = "LocationGoods")]
    public interface ILocationGoods
    {

        //[Mapping(MethodUrl = "SetLocationGoods?userID={0}")]
        //ResultModel<bool> SetLocationGoods(string userID, List<LocationGoodsInfo> lstLocationGoods);

        [Mapping(MethodUrl = "LocationGoodsMove?userID={0}&locationCode={1}")]
        ResultModel<bool> LocationGoodsMove(string userID, string locationCode, List<LocationGoodsInfo> lstLocationGoods);

        [Mapping(MethodUrl = "GetLocationALLGoods?goodsCode={0}&locationCode={1}")]
        ResultModel<List<LocationGoodsInfo>> GetLocationALLGoods(string goodsCode, string locationCode);

        [Mapping(MethodUrl = "GetGoodsInfoByBarCode?goodsCode={0}")]
        ResultModel<string> GetGoodsInfoByBarCode(string goodsCode);

        [Mapping(MethodUrl = "LocationGoodsInfoByCode?goodsCode={0}")]
        ResultModel<string> LocationGoodsInfoByCode(string goodsCode);

        [Mapping(MethodUrl = "GetGoodsInfoNeedCollection?goodsCode={0}")]
        ResultModel<GoodsAllInfo> GetGoodsInfoNeedCollection(string goodsCode);

        [Mapping(MethodUrl = "UpdateGoodsBarCode")]
         ResultModel<bool> UpdateGoodsBarCode(List<GoodsAllInfo> lstGoods);

        //[Mapping(MethodUrl = "ExistLoctionGoodsByLocationCode?code={0}")]
        //ResultModel<LocationGoodsInfo> ExistLoctionGoodsByLocationCode(string code);

        //[Mapping(MethodUrl = "ExistLoctionGoodsByGoodsCode?code={0}")]
        //ResultModel<LocationGoodsInfo> ExistLoctionGoodsByGoodsCode(string code);

        //[Mapping(MethodUrl = "DeleteLoctionGoodsRelation?locationGoodsId={0}")]
        //ResultModel<bool> DeleteLoctionGoodsRelation(int locationGoodsId);
        [Mapping(MethodUrl = "GetLocationInfoByCode?locationCode={0}")]
        ResultModel<LocationGoodsInfo> GetLocationInfoByCode(string locationCode);

        [Mapping(MethodUrl = "SetLocationGoods?userID={0}&LocationCode={1}&GoodsCode={2}&status={3}")]
        ResultModel<bool> SetLocationGoods(string userID, string LocationCode, string GoodsCode, int status);



    }
}
